package com.sparrow.mvc;

import java.lang.reflect.Method;
import java.util.List;

import com.sparrow.support.ActionSupport;

public class ActionEntity {
	/**
	 * 登录类别
	 * 
	 * 0:不需要登录
	 * 
	 * 1:正常登录
	 * 
	 * 2:框架内登录
	 */
	private int loginType = 0;
	private boolean isAjax = false;
	private String directionUrl;
	private String sourceUrl;
	private Method method;
	private String actionName;
	private ActionSupport actionInstance;

	public ActionSupport getActionInstance() {
		return actionInstance;
	}

	public void setActionInstance(ActionSupport actionInstance) {
		this.actionInstance = actionInstance;
	}

	private boolean isValidPrivilege;
	private List<String> parameterNameList;

	public List<String> getParameterNameList() {
		return parameterNameList;
	}

	public void setParameterNameList(List<String> parameterNameList) {
		this.parameterNameList = parameterNameList;
	}

	public String getDirectionUrl() {
		return directionUrl;
	}

	public void setDirectionUrl(String directionUrl) {
		this.directionUrl = directionUrl;
	}

	public String getSourceUrl() {
		return sourceUrl;
	}

	public void setSourceUrl(String sourceUrl) {
		this.sourceUrl = sourceUrl;
	}

	public Method getMethod() {
		return method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}

	public Boolean getIsAjax() {
		return isAjax;
	}

	public void setIsAjax(Boolean isAjax) {
		this.isAjax = isAjax;
	}

	public String getActionName() {
		return actionName;
	}

	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

	public int getLoginType() {
		return loginType;
	}

	public void setLoginType(int loginType) {
		this.loginType = loginType;
	}

	public boolean getIsValidPrivilege() {
		return isValidPrivilege;
	}

	public void setIsValidPrivilege(Boolean isValidPrivilege) {
		this.isValidPrivilege = isValidPrivilege;
	}

}
